cmake_minimum_required(VERSION 3.22)

project(Sofa.GL.Component.Rendering3D_test)

## MAC-OS crash when we are testing opengl feature.
if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
  set(SOURCE_FILES
     ClipPlane_test.cpp
     OglModel_test.cpp
     )

    add_executable(${PROJECT_NAME} ${SOURCE_FILES})
    target_link_libraries(${PROJECT_NAME} Sofa.Testing Sofa.Component.Engine.Testing)
    target_link_libraries(${PROJECT_NAME} Sofa.GL.Component)

    add_test(NAME ${PROJECT_NAME} COMMAND ${PROJECT_NAME})

endif()
